# -*- coding: utf-8 -*- 

'''
Created on 2013年7月1日
Data DAO
@author: lzy
'''
from google.appengine.ext import db
import logging

class NoteDAO:
    def save(self, noteDO):
        logging.info("save noteDO start")
        db.put(noteDO)
        
    def delete(self, key):
        logging.info("delete noteDO")
        db.delete(key);
        
    def update(self, noteDO):
        logging.info("update noteDO")
        db.put(noteDO)
        
    def query(self, key):
        logging.info("query noteDO")
        db.get(key)